package com.ysqcould.allocation.domain;


import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 模板消息配置对象 t_message_config
 * 
 * @author ruoyi
 * @date 2022-06-29
 */
public class MessageConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 公众号AppId */
    @Excel(name = "公众号AppId")
    private String appId;

    /** 公众号模板消息模板id */
    @Excel(name = "公众号模板消息模板id")
    private String templateId;

    /** 公众号模板消息所要跳转的url */
    @Excel(name = "公众号模板消息所要跳转的url")
    private String url;

    /** 公众号模板消息所要跳转的小程序appid */
    @Excel(name = "公众号模板消息所要跳转的小程序appid")
    private String appletId;

    /** 公众号模板消息所要跳转的小程序页面 */
    @Excel(name = "公众号模板消息所要跳转的小程序页面")
    private String pagePath;

    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Long status;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 消息类型：0审批通知，1活动/会议提醒，2缴费通知 */
    @Excel(name = "消息类型：0审批通知，1活动/会议提醒，2缴费通知")
    private Long type;

    /** 是否查看未读消息（0 否 1是） */
    @Excel(name = "是否查看未读消息", readConverterExp = "0=,否=,1=是")
    private Long isSee;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }
    public void setTemplateId(String templateId) 
    {
        this.templateId = templateId;
    }

    public String getTemplateId() 
    {
        return templateId;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setAppletId(String appletId) 
    {
        this.appletId = appletId;
    }

    public String getAppletId() 
    {
        return appletId;
    }
    public void setPagePath(String pagePath) 
    {
        this.pagePath = pagePath;
    }

    public String getPagePath() 
    {
        return pagePath;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setIsSee(Long isSee) 
    {
        this.isSee = isSee;
    }

    public Long getIsSee() 
    {
        return isSee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appId", getAppId())
            .append("templateId", getTemplateId())
            .append("url", getUrl())
            .append("appletId", getAppletId())
            .append("pagePath", getPagePath())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("asId", getAsId())
            .append("type", getType())
            .append("isSee", getIsSee())
            .toString();
    }
}
